﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Weapons
		Group                          = MissileLaunchers
		Size                           = Medium
		Module                         = flawed medium missile launcher
		CpuUsage                       = 40.00 TF
		ReactorUsage                   = 150.00 RP
		Type                           = Active
		Slot                           = Missile
		TechnologicalLevel             = T0
		Mass                           = 500.00 kg
		PackedVolume                   = 1.00 U
		Volume                         = 2.00 U
		AccumulatorConsumption         = 2.00 AP
		CycleTime                      = 19.60 sec
		AmmoChargeType                 = Medium missiles
		AmmoChargeCapacity             = 20 pcs
		Damage                         = 100 %
		HitDispersion                  = 1.00 •
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Flawed medium missile launcher module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:57</remarks>
    public sealed class FlawedMediumMissileLauncher : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="FlawedMediumMissileLauncher"/> class.
        /// </summary>
        public FlawedMediumMissileLauncher()
            : base(
            "Flawed medium missile launcher",
            "",
            ModuleMetaGroupsEnum.Weapons,
            ModuleGroupsEnum.MissileLaunchers,
            TechnologyLevelsEnum.Level0,
            SizesEnum.Medium,
            new LazyFeature[] { 
				new LazyFeature(typeof(WeaponCpuUsage<double>),40.00),
				new LazyFeature(typeof(WeaponReactorUsage<double>),150.00),
				new LazyFeature(typeof(ModuleMass<double>),500.00),
				new LazyFeature(typeof(WeaponAccumulatorUsage<double>),2.00),
				new LazyFeature(typeof(AmmunitionType<AmmunitionTypesEnum>),AmmunitionTypesEnum.MediumMissiles),
				new LazyFeature(typeof(AmmoCapacity<double>),20),
				new LazyFeature(typeof(MediumMissileLauncherCycleTime<double>),19.60),
				new LazyFeature(typeof(MediumMissileLauncherHitDispersion<double>),1.00),
				new LazyFeature(typeof(MissileLauncherDamage<double>),100),
				new LazyFeature(typeof(MissileLauncherOptimal<double>),0), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 500.00 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Chassis; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Missile; }
        }
    }
}